package cn.tedu.lucky.draw.server.service;

import cn.tedu.lucky.draw.server.protocol.po.Activity;
import cn.tedu.lucky.draw.server.protocol.po.Prize;
import cn.tedu.lucky.draw.server.protocol.query.ActivityQuery;
import org.json.JSONException;

import java.util.List;

public interface IActivityService {
    List<Activity> getAll(ActivityQuery activityQuery);

    void save(Activity activity);

    Activity findById(Long id);

    List<Activity> getAllActivities();

    Prize trigger(Long activityId) throws JSONException;
}
